package com.wanxi.spring.cloud.security.mapper;

import com.wanxi.spring.cloud.security.model.Permission;
import com.wanxi.spring.cloud.security.model.User;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
public interface UserMapper {

    User getUserByName(String username);

    List<Permission> getPermissionsByUserId(Integer id);

}
